
#include "CharacterBullet.h"


using namespace cgGame;


CCharacterBullet::CCharacterBullet(
	cgVector2D pos, 
	unsigned int charID, 
	Bullet_Type bulletType, 
	Character_Dir dir
	)
	:CCharacter(pos, charID)
{
	SetObjPos(pos);
	m_bulletType = bulletType;
	m_moveSpeed = 4.0f;
	m_direction = dir;
}



CCharacterBullet::~CCharacterBullet()
{

}



void CCharacterBullet::SetBulletType(Bullet_Type bulletType)
{
	m_bulletType = bulletType;
}

Bullet_Type CCharacterBullet::GetBulletType()
{
	return m_bulletType;
}


//void CCharacterBullet::SetBulletPos(cgVector2D pos)
//{
//	m_position = pos;
//	if (pos.x < 0 || pos.y < 0 || pos.x > g_screenWidth || pos.y > g_screenHeight)
//	{
//		m_isAlive = false;
//	}
//}
//
//cgVector2D CCharacterBullet::GetBulletPos()
//{
//	return m_position;
//}